number1 = 123
number2 = 456
string1 = 'admin'
string2 = 'zhangsan'

# 性能优化
# number1 > 10 and print("A good")
# number2 < 10 and print("B good")
# number1 > 10 or print("A good")
# number1 > 2000 or print("B good")
# number2 < 10 or print("C good")


# 逻辑运算符   and 与   or 或   not 非
# print(number1 == 123 and number2 == 456)
# print(number1 == 123 and number2 == 4566)
# print(number1 == 1231 and number2 == 4566)
# print(number1 == 123 or number2 == 456)
# print(number1 == 1231 or number2 == 4566)
# print(number1 == 123 or number2 == 4566)
# print(not number1 == 123)
# print(not number1 == 1231)


# 返回布尔值  判断两边的是否相等
# print(number1 == number2)
# print(number1 != number2)
# print(string1 != string2)
# print(number1 > number2)
# print(number1 < number2)
# print(number1 >= number2)
# print(number1 <= number2)

